<template>
	<view>
		<view class="store">
			<div class="item" v-for="(item, index) in 3" :key="index">
				<text>{{index + 1}}</text>
				<text>门店：{{stareName}}</text>
				<text>店长：{{shopkeeper}}</text>
				<navigator class="blue" url="edit">修改</navigator>

			</div>
		</view>
		<view class="addStore" @click="addStore">+添加门店</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				stareName: 'test',
				shopkeeper: 'wo'
			};
		},
		methods: {
			addStore() {
				uni.navigateTo({
					url: "/pages/store/add",
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.store {
		.item {
			display: flex;
			align-items: center;
			justify-content: space-evenly;
			height: 150rpx;
			border-bottom: 1px solid #afafaf;
			line-height: 150rpx;
			font-size: 30rpx;

			.blue {
				color: blue;
			}
		}
	}

	.addStore {
		position: absolute;
		bottom: 0;
		width: 100%;
		height: 100rpx;
		line-height: 100rpx;
		text-align: center;
		background-color: #00a743;
		color: #fff;
	}
</style>